<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>PRINCE STUDY ROOM *NO1*GAE+TABELOGAPI*</title>
<link rel="stylesheet" type="text/css" href="/css/global.css" />
</head>
<body>
<h1>PRINCE STUDY ROOM *NO1*GAE+TABELOGAPI*</h1>
<form method="post" action="${f:url('')}">
<select name="todofuken">
    <option ${f:select("todofuken", "hokkaido")}>北海道</option>
    <option ${f:select("todofuken", "aomori")}>青森</option>
    <option ${f:select("todofuken", "iwate")}>岩手</option>
</select>
<select name="page">
    <option ${f:select("page", "1")}>1</option>
    <option ${f:select("page", "2")}>2</option>
    <option ${f:select("page", "3")}>3</option>
</select>
<input type="submit" value="Submit">
</form>
<hr>
${f:h(numOfResult)}
<hr>
<form action="${f:url('/memo')}" method="post" enctype="multipart/form-data">
<ul>
<c:forEach items="${result}" var="e">
    <li>
        <input type="radio" ${f:radio("rcd", e.rcd)}><a href="${e.url}">${f:h(e.restaurantName)}</a>
        ${f:h(e.memo)}
        <c:if test="${e.imageName != null}">
        	<a href="/image?imageName=${e.imageName}"><img src="/image?imageName=${e.imageName}" height="100px"/></a>
		</c:if>
    </li>
</c:forEach>
</ul>
<p>メモ：<input type="text" ${f:text("memo")}></p>
<p>写真：<input type="file" name="image" /><br /></p>
<input type="submit" value="メモる">
</form>
</body>
</html>
